-- GENERATED SPELL FOR [Zulian Crocolisk] --


function spell0_15043(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15043', 15000, 1)
end

function spell1_15043(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15043', 8000, 1)
end

function Sorts_15043(pUnit, Event)
local choix_sorts_15043 = math.random(0, 1)
if choix_sorts_15043 == 0 then
pUnit:RegisterEvent('spell0_15043', 1, 1)
end
if choix_sorts_15043 == 1 then
pUnit:RegisterEvent('spell1_15043', 1, 1)
end
end

function mob15043_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15043', math.random(1500, 3000), 1)
end

function mob15043_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15043_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15043_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15043, 1, 'mob15043_Action')
RegisterUnitEvent(15043, 2, 'mob15043_Leave')
RegisterUnitEvent(15043, 3, 'mob15043_Kill')
RegisterUnitEvent(15043, 4, 'mob15043_Die')
